import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';

/// statusDark:状态栏文字颜色
/// color:背景色
/// child:子view
Widget BaseContainer(
        {required List<Widget> children,
        Color? color,
        bool statusDark = false}) =>
    AnnotatedRegion(
      value:
          statusDark ? SystemUiOverlayStyle.light : SystemUiOverlayStyle.dark,
      child: Scaffold(
        body: Center(
          child: Stack(
            children: children,
          ),
        ),
        backgroundColor: color,
      ),
    );
